package com.dlnu.shoping.shopping.service.impl;

import com.dlnu.shoping.shopping.common.Result;
import com.dlnu.shoping.shopping.mapper.CategoryDao;
import com.dlnu.shoping.shopping.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    private CategoryDao categoryDao;

    @Override
    public Result search(Integer categoryId) {
        return new Result(categoryDao.search(categoryId));
    }
}
